package org.example.service;

import org.example.pojo.Page;
import org.example.pojo.User;

public interface UserService {
    //根据用户名查询用户
    User findByUserName(String username);

    //注册
    void register(String username, String password);

    Page<User> getByPages(int currentPage, int pageSize, String nickName);

    //更新
    void update(User user);

    //更新密码
    void updatePwd(String newPwd);
}
